package com.dubbo.consumer;

import com.dubbo.provider.service.DemoService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Jack
 * @description: TODO
 * @date 2021/11/3 18:26
 */
public class ApplicationConsumer {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Consumerconfiguration.class);
        context.start();
        DemoService demoService = context.getBean("demoServiceImpl",DemoServiceImpl.class);
        demoService.sayHello();
    }
}
